clear all
set more off
cd "[working directory]\Replication_files"
global control "age hhmale high_edu minor  c4 c5 famsize   poorrg"
global FE "i.countyid"
use Household_data_anonymized.dta, clear
	
	*** Generate county dummies
	xi: qui reg growth i.countyid
	
	
	do Define_bandwidth
	
	
********************************************************************************
	*** Table 2 and Table 3
********************************************************************************
	foreach var of varlist growth  ccei cceid {
	
		rdob `var'  running, c(2.3) fuzzy(treated)
		rdob `var'  running $control, c(2.3) fuzzy(treated)
		rdob `var'  running $control _Icountyid_2 _Icountyid_3, c(2.3) fuzzy(treated)

	}
	
	
********************************************************************************
	*** Table 4
********************************************************************************
	foreach var of varlist  slfsqw Sel  equsqw Leo  effsqw Sub {

		rdob `var'  running $control _Icountyid_2 _Icountyid_3, c(2.3) fuzzy(treated)

	}

	
	